name: 'Lock Closed Threads'

on:
  schedule:
    - cron: '0 0 * * *'

permissions:
  issues:
    write
  pull-requests:
    write

jobs:
  lock:
    runs-on: ubuntu-20.04
    steps:
      - uses: dessant/lock-threads@v5
        with:
          github-token: ${{ github.token }}
          issue-lock-inactive-days: '180'
          issue-lock-labels: 'status:resolved-locked'
          pr-lock-inactive-days: '180'
          pr-lock-labels: 'status:resolved-locked'
